package com.joyveb.webtest;

import java.io.IOException;
import java.net.HttpURLConnection;

import org.springframework.http.client.SimpleClientHttpRequestFactory;

public class NoRedirectClientHttpRequestFactory extends
		SimpleClientHttpRequestFactory {

	@Override
	protected void prepareConnection(HttpURLConnection connection,
			String httpMethod) throws IOException {
		super.prepareConnection(connection, httpMethod);
//		connection.setInstanceFollowRedirects(false);
	}
}